use "build/output/main_panel.dta", clear
keep if coin == "USDT"

collapse (mean) d_ln_market_cap funding_apr, by(mdate)

format d_ln_market_cap %10.3fc


two (scatter d_ln_market_cap funding_apr, xtitle("Perpetual Future Funding Rate (%, Annualized)") subtitle("{&Delta} ln(Market Cap)",  orientation(horizontal) bexpand justification(left)) plotregion(margin(medium))  ytitle("") scale(*1.25)) ///
	(lfit d_ln_market_cap funding_apr, lcolor(gs12)), legend(off)
	
	
gr export "analysis/output_figures/scatter_funding_market_cap.pdf", replace
